home *** CD-ROM | disk | FTP | other *** search
/ 202 Game Collection / 202 Game Collection.iso / Ultimate / games / Braid.dxr / 00060_braid.ls < prev    next >
Encoding:
Text File  |  2001-10-16  |  706 b   |  26 lines

  1. property spriteNum
  2. global orig, currentcard
  3.  
  4. on beginSprite me
  5.   sprite(spriteNum).visible = 0
  6. end
  7.  
  8. on mouseDown me
  9.   if sprite(spriteNum).visible and (currentcard = 0) then
  10.     if (spriteNum = 26) or (sprite(spriteNum + 1).visible = 0) then
  11.       puppetSound("pickcard")
  12.       orig = spriteNum
  13.       currentcard = 60
  14.       sprite(currentcard).visible = 1
  15.       sprite(currentcard).memberNum = sprite(spriteNum).memberNum - 78
  16.       sprite(currentcard).loc = sprite(spriteNum).loc
  17.       sprite(spriteNum).visible = 0
  18.       repeat while the mouseDown
  19.         sprite(currentcard).loc = point(the mouseH, the mouseV)
  20.         updateStage()
  21.       end repeat
  22.     end if
  23.   end if
  24.   sendSprite(73, #mouseDown)
  25. end
  26.